package com.google.code.UtopiaXml;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * Base class for indicators with maxOccurs &lt;=1
 *
 * @author Michael Simacek
 */
public abstract class SingleIndicator extends Indicator {

    @Override
    public Set<Property> getProperties() {
        Set<Property> props = new LinkedHashSet<>();
        for (IndicatorContent cont : getContent()) {
            props.addAll(cont.getProperties());
        }
        return props;
    }
}
